<template>
	<view>
		<view class="sticky-box">
			<view class="btn-tag" @click="searchTab">
				<uv-icon name="search" color="#FFF"></uv-icon>
				<uv-text text="筛选" color="#FFF" style="width:120rpx"></uv-text>
			</view>
		</view>
	</view>
</template>

<script>
	import sheep from '@/sheep';
	import { showAuthModal } from '@/sheep/hooks/useModal';
	import $store from '@/sheep/store';
	export default {
		components: {
			
		},
		props: {
			scrollTop: {
				type: Number,
				default: 0,
			},
			stickyTop: {
				type: Number,
				default: uni.upx2px(80),
			},
		},
		data() {
			return {
				
			}
		},
		computed: {
			
		},
		methods: {
			searchTab() {
				const isLogin = sheep.$store('user').isLogin;
				if(!isLogin) {
					showAuthModal();
					return;
				}
				$store('modal').$patch((state) => {
					state.search = true;
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.sticky-box {
		display: flex;
		width: 100%;
		padding-top: 25rpx;
		
		.btn-tag {
			display: flex;
			font-size: 20rpx;
		}
	}
</style>